
package com.tedu.food.common.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
@Data
@NoArgsConstructor
public class JsonResult implements Serializable {
	private static final long serialVersionUID = -8134647621235548384L;
	/* 结果状态 */
    private Integer status = 1;
    /* 状态信息 */
    private String message = "ok";
    private Object data;
    public JsonResult(Object data){
        this.data = data;
    }
    public JsonResult(String message){
        this.message = message;
    }
    public JsonResult(Throwable e){
        this.status = 0;
        this.message = e.getMessage();
    }
}
